﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.AutomaticPathPlanner.Images
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System.Drawing;
using System.Windows.Media;
using Tecnomatix.Engineering.Ui;


namespace DnProcessSimulateCommands.AutomaticPathPlanner;

public static class Images
{
  public static readonly ImageSource MagnetShow = Images.CreateImageFromKey("DisplayMagneticPoint", 16 /*0x10*/);
  public static readonly ImageSource MagnetReset = Images.CreateImageFromKey("MagneticReset", 16 /*0x10*/);
  public static readonly ImageSource Info = Images.CreateImageFromKey("InfoColor", 16 /*0x10*/);
  public static readonly ImageSource Error = Images.CreateImageFromKey("ErrorColor", 16 /*0x10*/);
  public static readonly ImageSource Warning = Images.CreateImageFromKey("WarningColor", 16 /*0x10*/);
  public static readonly ImageSource Warning32 = Images.CreateImageFromKey("WarningColor", 32 /*0x20*/);
  public static readonly ImageSource Lock = Images.CreateImageFromKey(nameof (Lock), 16 /*0x10*/);
  public static readonly TxImage AutomaticPathPlanner = Images.CreateTxImageFromKey(nameof (AutomaticPathPlanner));

  private static ImageSource CreateImageFromKey(string key, int size)
  {
    return TxImageManager.GetImageByKey(key).ConvertTo<ImageSource>(new Size(size, size));
  }

  private static TxImage CreateTxImageFromKey(string key) => TxImageManager.GetImageByKey(key);
}
